wayland: Translate STRING/UTF8_STRING selection atoms to mimetypes
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 3 Oct 2022 08:35:48 +0000 (10:35 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 3 Oct 2022 08:35:48 +0000 (10:35 +0200)
commit0c1ea9221976b838101d2593754b658808fdc542
tree048217d49414d2882ec1a0b24ede8d307bbba641
parent1c375f72bc7407dbd1574d2a26ad83f13bb3808b
wayland: Translate STRING/UTF8_STRING selection atoms to mimetypes

Since the GDK API layer in 3.x is considerably tied to X11 details,
it makes sense to provide this bit of translation in case the app
uses these exclusively and does not use actual mimetype strings.
Provide this bit of translation of X11 selection atoms to mimetypes.

While at it, use the right zwp_primary_selection_source_v1 API with
primary selection data sources. From the looks of it, this just
happened to work.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5217
gdk/wayland/gdkselection-wayland.c